3.116 \(\int \sin ^n(e+f x) (1+\sin (e+f x))^{3/2} \, dx\)

Optimal. Leaf size=96 \[ -\frac{2 (4 n+5) \cos (e+f x) \, _2F_1\left (\frac{1}{2},-n;\frac{3}{2};1-\sin (e+f x)\right )}{f (2 n+3) \sqrt{\sin (e+f x)+1}}-\frac{2 \cos (e+f x) \sin ^{n+1}(e+f x)}{f (2 n+3) \sqrt{\sin (e+f x)+1}} \]

[Out]

(-2*(5 + 4*n)*Cos[e + f*x]*Hypergeometric2F1[1/2, -n, 3/2, 1 - Sin[e + f*x]])/(f*(3 + 2*n)*Sqrt[1 + Sin[e + f*
x]]) - (2*Cos[e + f*x]*Sin[e + f*x]^(1 + n))/(f*(3 + 2*n)*Sqrt[1 + Sin[e + f*x]])

________________________________________________________________________________________

Rubi [A]  time = 0.11055, antiderivative size = 96, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {2763, 21, 2776, 65} \[ -\frac{2 (4 n+5) \cos (e+f x) \, _2F_1\left (\frac{1}{2},-n;\frac{3}{2};1-\sin (e+f x)\right )}{f (2 n+3) \sqrt{\sin (e+f x)+1}}-\frac{2 \cos (e+f x) \sin ^{n+1}(e+f x)}{f (2 n+3) \sqrt{\sin (e+f x)+1}} \]

Antiderivative was successfully verified.

[In]

Int[Sin[e + f*x]^n*(1 + Sin[e + f*x])^(3/2),x]

[Out]

(-2*(5 + 4*n)*Cos[e + f*x]*Hypergeometric2F1[1/2, -n, 3/2, 1 - Sin[e + f*x]])/(f*(3 + 2*n)*Sqrt[1 + Sin[e + f*
x]]) - (2*Cos[e + f*x]*Sin[e + f*x]^(1 + n))/(f*(3 + 2*n)*Sqrt[1 + Sin[e + f*x]])

Rule 2763

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> -Si
mp[(b^2*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m - 2)*(c + d*Sin[e + f*x])^(n + 1))/(d*f*(m + n)), x] + Dist[1/(d*
(m + n)), Int[(a + b*Sin[e + f*x])^(m - 2)*(c + d*Sin[e + f*x])^n*Simp[a*b*c*(m - 2) + b^2*d*(n + 1) + a^2*d*(
m + n) - b*(b*c*(m - 1) - a*d*(3*m + 2*n - 2))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] &&
NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[m, 1] &&  !LtQ[n, -1] && (IntegersQ[2*m, 2*
n] || IntegerQ[m + 1/2] || (IntegerQ[m] && EqQ[c, 0]))

Rule 21

Int[(u_.)*((a_) + (b_.)*(v_))^(m_.)*((c_) + (d_.)*(v_))^(n_.), x_Symbol] :> Dist[(b/d)^m, Int[u*(c + d*v)^(m +
 n), x], x] /; FreeQ[{a, b, c, d, n}, x] && EqQ[b*c - a*d, 0] && IntegerQ[m] && ( !IntegerQ[n] || SimplerQ[c +
 d*x, a + b*x])

Rule 2776

Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Dist
[(a^2*Cos[e + f*x])/(f*Sqrt[a + b*Sin[e + f*x]]*Sqrt[a - b*Sin[e + f*x]]), Subst[Int[(c + d*x)^n/Sqrt[a - b*x]
, x], x, Sin[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ
[c^2 - d^2, 0] &&  !IntegerQ[2*n]

Rule 65

Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((c + d*x)^(n + 1)*Hypergeometric2F1[-m, n +
 1, n + 2, 1 + (d*x)/c])/(d*(n + 1)*(-(d/(b*c)))^m), x] /; FreeQ[{b, c, d, m, n}, x] &&  !IntegerQ[n] && (Inte
gerQ[m] || GtQ[-(d/(b*c)), 0])

Rubi steps

\begin{align*} \int \sin ^n(e+f x) (1+\sin (e+f x))^{3/2} \, dx &=-\frac{2 \cos (e+f x) \sin ^{1+n}(e+f x)}{f (3+2 n) \sqrt{1+\sin (e+f x)}}+\frac{2 \int \frac{\sin ^n(e+f x) \left (\frac{1}{2} (5+4 n)+\frac{1}{2} (5+4 n) \sin (e+f x)\right )}{\sqrt{1+\sin (e+f x)}} \, dx}{3+2 n}\\ &=-\frac{2 \cos (e+f x) \sin ^{1+n}(e+f x)}{f (3+2 n) \sqrt{1+\sin (e+f x)}}+\frac{(5+4 n) \int \sin ^n(e+f x) \sqrt{1+\sin (e+f x)} \, dx}{3+2 n}\\ &=-\frac{2 \cos (e+f x) \sin ^{1+n}(e+f x)}{f (3+2 n) \sqrt{1+\sin (e+f x)}}+\frac{((5+4 n) \cos (e+f x)) \operatorname{Subst}\left (\int \frac{x^n}{\sqrt{1-x}} \, dx,x,\sin (e+f x)\right )}{f (3+2 n) \sqrt{1-\sin (e+f x)} \sqrt{1+\sin (e+f x)}}\\ &=-\frac{2 (5+4 n) \cos (e+f x) \, _2F_1\left (\frac{1}{2},-n;\frac{3}{2};1-\sin (e+f x)\right )}{f (3+2 n) \sqrt{1+\sin (e+f x)}}-\frac{2 \cos (e+f x) \sin ^{1+n}(e+f x)}{f (3+2 n) \sqrt{1+\sin (e+f x)}}\\ \end{align*}

Mathematica [C]  time = 23.2207, size = 5109, normalized size = 53.22 \[ \text{Result too large to show} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[Sin[e + f*x]^n*(1 + Sin[e + f*x])^(3/2),x]

[Out]

Result too large to show

________________________________________________________________________________________

Maple [F]  time = 0.118, size = 0, normalized size = 0. \begin{align*} \int \left ( \sin \left ( fx+e \right ) \right ) ^{n} \left ( 1+\sin \left ( fx+e \right ) \right ) ^{{\frac{3}{2}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(f*x+e)^n*(1+sin(f*x+e))^(3/2),x)

[Out]

int(sin(f*x+e)^n*(1+sin(f*x+e))^(3/2),x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sin \left (f x + e\right )^{n}{\left (\sin \left (f x + e\right ) + 1\right )}^{\frac{3}{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(f*x+e)^n*(1+sin(f*x+e))^(3/2),x, algorithm="maxima")

[Out]

integrate(sin(f*x + e)^n*(sin(f*x + e) + 1)^(3/2), x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\sin \left (f x + e\right )^{n}{\left (\sin \left (f x + e\right ) + 1\right )}^{\frac{3}{2}}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(f*x+e)^n*(1+sin(f*x+e))^(3/2),x, algorithm="fricas")

[Out]

integral(sin(f*x + e)^n*(sin(f*x + e) + 1)^(3/2), x)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(f*x+e)**n*(1+sin(f*x+e))**(3/2),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sin \left (f x + e\right )^{n}{\left (\sin \left (f x + e\right ) + 1\right )}^{\frac{3}{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(f*x+e)^n*(1+sin(f*x+e))^(3/2),x, algorithm="giac")

[Out]

integrate(sin(f*x + e)^n*(sin(f*x + e) + 1)^(3/2), x)